// Package v1
// @Author Spume
// @Date 2025-01-03 16:24

package v1

import (
	"gitee.com/spume/common_service/app/billing/api/schmea"
	"github.com/gogf/gf/v2/frame/g"
)

type AccountCreateReq struct {
	g.Meta `path:"/account" method:"post"`
	schmea.CommonReq

	MemberId string `p:"memberId" v:"required"`
	Title    string `p:"title"`

	CurrencyType int `p:"currencyType" v:"required"`
}

type AccountCreateRes struct{}

type AccountCreateBatchReq struct {
	g.Meta `path:"/account/batch" method:"post"`
	schmea.CommonReq

	MemberId string `p:"memberId" v:"required"`
	Title    string `p:"title"`

	CurrencyTypes []int `p:"currencyTypes" v:"required"`
}

type AccountCreateBatchRes struct{}

type AccountBalanceReq struct {
	g.Meta `path:"/account/balance"  method:"get"`
	schmea.CommonReq

	MemberId     string `p:"memberId" v:"required"`
	CurrencyType []int  `p:"currencyType" v:"required"`
}

type AccountBalanceRes struct {
	Balances map[int]schmea.Balance `json:"balances"`
}
